from django.conf.urls import url,include
from .views import index,login,cart,order,member
urlpatterns = [
    url(r'^$',index.index),
    #首页
    url(r'^index/$',index.index,name='index'),

    #列表
    url(r'^list/$',index.list,name='list'),

    #详情
    url(r'^info/$',index.info,name='info'),

    #注册
    url(r'^reg/$',login.reg,name='reg'),

    #登录
    url(r'^log/$',login.log,name='log'),

    #退出登录
    url(r'^logout/$',login.logout,name='logout'),

    #短信验证码
    url(r'^send_Msg/$',login.send_Msg,name='send_Msg'),

    #购物车页面显示
    url(r'^cart/$', cart.cart, name='cart'),

    # 购物车执行添加
    url(r'^cart_add/$', cart.cart_add, name='cart_add'),

    #购物车数据更新
    url(r'^cart_update/$', cart.cart_update, name='cart_update'),

    #购物车删除
    url(r'^cart_del/$', cart.cart_del, name='cart_del'),
    #清空购物车
    url(r'^cart_clear/$', cart.cart_clear, name='cart_clear'),

    #订单提交
    url(r'^order/$', order.order, name='order'),

    #订单创建页
    url(r'^order_create/$', order.order_create, name='order_create'),
    #订单支付页
    url(r'^order_pay/$', order.order_pay, name='order_pay'),
    #订单结果页
    url(r'^order/pay_result/',order.myhome_pay_result,name="myhome_pay_result"),

    url(r'^order_info/$', order.order_info, name="order_info"),

    #订单列表页
    url(r'^member_order/$', member.member_order, name='member_order'),

    #个人中心页
    url(r'^member/$', member.member, name='member'),
    url(r'^member_save/$', member.member_save, name='member_save'),
]
